package com.huanletao.sync.lock04;

public class UserInfoService {

    public String getUserInfo(Long userId)  {
        try {
            Thread.sleep(300);//模拟调用耗时
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        return  "666"+"捡田螺的小男孩"+27; //一般是查数据库，或者远程调用返回的
    }
}

